Skip to content

Give the first-party backend a first-class path - #704

Merged
arrry-hydraDB merged 5 commits into
hydra-db:mainfrom
jaywyawhare:feat/backend-first-class
Dec 5, 2026
Merged

arrry-hydraDB merged 5 commits into
hydra-db:mainfrom
jaywyawhare:feat/backend-first-class

Conversation

@jaywyawhare

@jaywyawhare jaywyawhare commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Give the first-party backend (HydraDB) a first-class path: both SDKs check the reported release at connect and raise unsupported_store_version on a release below the supported floor, install warns when the effective HydraDB config has no token and points to the right variable, and a quickstart shows a token loaded from a private file. This lands a coherent core; the parts that need a workflow change are deferred.

Implementation details

Decisions

  • Both SDKs check the HydraDB release during initialization; a reported release below 0.5.0 raises unsupported_store_version through the API, CLI, and MCP. Connections with unrecognized version metadata still run the connection probe.
  • Install warns when the effective HydraDB configuration lacks a token and points to SELFGRAPH_AUTH; inherited tokens stay out of project files.
  • The quickstart uses Bolt port 7687 and shows how to load a token from a private file.
  • Both SDK connection examples and the conformance pair use stubbed Bolt metadata; the suites ran on Kuzu only.

Validation

  • Eight regression tests fail on base; both conformance files are updated.
  • scripts/precheck.py passes (430 changed lines, clean trial merge). Full suites on Kuzu pass; the macOS pipe test passed this run.
  • Ruff, TypeScript lint, typecheck, and build pass.

Limits

Deferred: the HydraDB CI matrix (needs a separate maintainer workflow change), a one-command local server, the backlink from the HydraDB README, and live-server startup doc tests.

Linked issue

Closes #680

AI Assistance

AI tools helped write and test parts of this. I reviewed and ran every change.

Checklist

  • Implements an issue a maintainer has /approved.
  • Small and scoped to that issue.
  • New errors have a code and hint, the same on API, CLI, and MCP in both SDKs (see AGENTS.md). Adds unsupported_store_version with its code, hint, and docs/errors.md section in both SDKs.
  • Breaking changes described below, or none.

Breaking changes

None. A HydraDB release below the supported floor now raises unsupported_store_version at connect rather than failing later.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@arrry-hydraDB arrry-hydraDB added docs Docs only store: hydradb hydradb backend effort: L Design change or many modules labels Dec 4, 2026
@arrry-hydraDB
arrry-hydraDB marked this pull request as ready for review December 4, 2026 22:29

@arrry-hydraDB arrry-hydraDB left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arrry-hydraDB
arrry-hydraDB merged commit d367aae into hydra-db:main Dec 5, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Docs only effort: L Design change or many modules store: hydradb hydradb backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Give the first-party backend a first-class path

2 participants